<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <form>
      <!-- label标签没有具体的样式,它是配合其他元素实现效果的 -->
      <!-- 可以通过for属性将label绑定到另外一个元素,或者直接在label
    元素内部放置另外一个元素 -->
      <label for="male">male</label>
      <input type="radio" name="sex" id="male" />
      <label for="female">female</label>
      <input type="radio" name="sex" id="female" />
    </form>
    <p></p>
    <label for="text"> 用户名:</label> <input type="text" id="text" />
    <input type="radio" id="nan" name="sex" /> <label for="nan">男</label>
    <input type="radio" id="nv" name="sex" /> <label for="nv">女</label>
  </body>
</html>
